<?php echo $this->render('admin/head.phtml');?>
<form action='?' method='post'>
  <table>
    <tr>
      <td>
	<select name='cat_id' id='select_tag_cat'>
	  <?php foreach ($this->categories as $category){?>
	  <option value='<?php echo $category->id;?>' <?php if ($this->cat==$category->id)echo selected?>><?php echo $category->name;?></option>
	  <?php }?>
	</select>
      </td>
    </tr>
    <tr>
      <td><input type='text' name='tag'/></td>
      <td><input type='submit' value='add tag'/></td>
    </tr>
  </table>
</form>

<div id='div_tags'>
	  <?php if (count($this->tags)>0)foreach ($this->tags as $tag){?>
	  <?php echo $tag->tag;?>
	  <br/>
	  <?php }?>
</div>
<?php echo $this->render('admin/foot.phtml');?>
